package com.aidong.carnival.service;


import org.apache.ibatis.annotations.Param;

import com.aidong.activity.entity.MstCampaign;
import com.aidong.carnival.entity.Message;
import com.aidong.carnival.entity.TrnInvitationCode;


public interface InvitationService {
	/**
	 * 根据邀请码判断该邀请码是否正确
	 * @param code
	 * @return
	 */
	public String checkInvitation();
	/**
	 * 保存该邀请码用户信息
	 * @param invitation
	 */
	public void addInvitation(TrnInvitationCode invitation);
	
	/**
	 * 购买邀请活动
	 * @return
	 *//*
	public Message addinvitationBuy(String idongId,String contactName,String contactPhone,String phone) throws Exception;*/
	
	/**
	 * 获取邀请码活动ID
	 * @return
	 */
	public MstCampaign getCampaignDetailByType();
	public int getInvitationCounts(String code,int activitId,String phone);
	
	public int getCampaignByPhone(String phone,int activitId);
	
	public int getInvitationByPhone(String code,String phone);
}
